package com.woniuxy.userassembly.service.impl;

import com.woniuxy.userassembly.model.UserCreditInfo;
import com.woniuxy.userassembly.dao.UserCreditInfoMapper;
import com.woniuxy.userassembly.service.IUserCreditInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Liyfi
 * @since 2021-05-25
 */
@Service
public class UserCreditInfoServiceImpl extends ServiceImpl<UserCreditInfoMapper, UserCreditInfo> implements IUserCreditInfoService {
    @Autowired
    private UserCreditInfoMapper mapper;
    @Override
    public int addUserCreditInfo(UserCreditInfo userCreditInfo) {
        int i = mapper.addCreditInfo(userCreditInfo);
        return i;
    }

    @Override
    public UserCreditInfo selUserCreditInfo(int userCreditInfoId) {
        UserCreditInfo userCreditInfo = mapper.selUserCreditInfo(userCreditInfoId);
        return userCreditInfo;
    }
}
